import { IsString, MaxLength, IsNumber } from 'class-validator';

export class CreateUserDTO {
  @IsString()
  @MaxLength(30)
  readonly username: string;

  @IsString()
  @MaxLength(100)
  readonly email: string;

  @IsString()
  @MaxLength(30)
  readonly mobile: string;

  @IsString({ each: true })
  readonly roleIds: string[];
}
